//
//  TMNearbyViewModel.h
//  国学培训用户端
//
//  Created by Tao Li on 2018/8/23.
//  Copyright © 2018年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^ SuccessBlock)(id responseObject);
typedef void (^ FailureBlock)(NSString *error);
typedef void (^ CompleteBlock)(id , id);
@interface TMNearbyViewModel : NSObject
- (void)getTeacherDetailWithParam:(NSInteger)tid AndPage:(NSInteger)page Success:(CompleteBlock)block Failed:(FailureBlock)failre;
- (void)getWorkingTeacherWithParam:(NSInteger)did Success:(SuccessBlock)block Failed:(FailureBlock)failre;

- (void)getShopCommentWithParam:(NSInteger)did AndPage:(NSInteger)page Success:(CompleteBlock)block Failed:(FailureBlock)failre;
- (void)getShopCourseSaleWithParam:(NSInteger)did Type:(NSInteger)tid Page:(NSInteger)page Success:(CompleteBlock)block Failed:(FailureBlock)failre;

- (void)getBoutiqueCourseWithPage:(NSInteger)page Success:(CompleteBlock)block Failed:(FailureBlock)failre;

- (void)getNearbyCourseWithParam:(NSString *)degree Success:(SuccessBlock)block Failed:(FailureBlock)failre;

-(void)getCourseDiscountWith:(NSInteger)cid Success:(SuccessBlock)success failed:(FailureBlock)failed;
// 可领取领取 优惠券列表
-(void)getCanUuseDiscountListWith:(NSInteger)did With:(NSInteger)cid Success:(SuccessBlock)success failed:(FailureBlock)failed;
//领取
-(void)getToUsrDiscountWith:(NSInteger)did Success:(SuccessBlock)success failed:(FailureBlock)failed;
//使用
-(void)getRealUseDiscountWith:(NSDictionary *)param Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)getBuyCourseWith:(NSDictionary *)param Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)CommitOrderWith:(NSDictionary *)param Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getToOrderCourseWith:(NSInteger)cid Success:(SuccessBlock)success failed:(FailureBlock)failed;
@end
